#ifndef _FRACTION_H_
#define _FRACTION_H_

typedef struct
{
	long whole_number;
	long numerator;
	long denominator;
} fraction_t;

fraction_t *MakeFraction(long whole_number, long numerator, long denominator);

int DeleteFraction(fraction_t *fr);

int PrintFraction(fraction_t *fr);

int FixMix(fraction_t *frac);

int PureFraction(fraction_t *frac);

int ReduceFraction(fraction_t *frac, long index);

#endif // _FRACTION_H_
